<?php

namespace Mlym\CodeGeneration\InitGeneration\Controller\Method;

use Mlym\CodeGeneration\ClassGeneration\MethodAbstract;

class Index extends MethodAbstract
{

    function addMethodBody()
    {
        $this->method->addBody(<<<BODY
        \$this->actionNotFound('index');
BODY
        );
    }

    function getMethodName(): string
    {
        return 'index';
    }
}